package com.dkd.flow.emums;
import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;
public enum Status implements IEnum<Integer> {
    OPEN(0, "正常"), STOP(1, "停用");
    @EnumValue
    private final Integer value;
    private final String name;
    Status(Integer value, String name) {
        this.value = value;
        this.name = name;
    }
    @Override
    @JsonValue
    public Integer getValue() {
        return value;
    }
    public String getName() {
        return name;
    }
}
